package com.jy.rhin.model.header;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.model.CodeObject;
import lombok.Data;

/***
 * 监护人信息
 */
@Data
public class Guardian {
    //家庭关系代码
    @XPath(path = "/code"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_020_00, nullable = true))
    CodeObject code;
    @XPath(path = "/addr")
    Addr addr;
    //联系电话
    @XPath(path = "/telecom/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_010_00, nullable = true))
    String telecom;
    //监护人姓名
    @XPath(path = "/guardianPerson/name/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_039_00, nullable = true))
    String name;
}
